Skip to contentSkip to conversation

Change in openvpn[master]: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit mes...

Openvpn-devel In review cron2 (Code Review) 2 participants 9 messages Sep 17, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1758101669000.Idb137ecbade4b0584a4d74aee34978062e247bc5@...2715...

#1 lore raw

Attention is currently required from: flichtenheld, plaisthos.

Hello plaisthos, flichtenheld,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email

to review the following change.

Change subject: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message
......................................................................

dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message

We used to reference to one of the mailing list archives as the formal reference for the patch and the review discussions. With the problematic reliability of the archives, I've started to manually add the URLs in the OpenVPN Gerrit to the commits because they give a better reference and (usually) all the feedback is there in a useful format.

So, enhance this dev-tool script to do this automatically.

Change-Id Idb137ecbade4b0584a4d74aee34978062e247bc5

---
M dev-tools/gerrit-send-mail.py

1 file changed, 4 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/96/1196/1

dev-tools/gerrit-send-mail.py +4 -2
index 0b49ae9..e412d10 100755
@@ -99,19 +99,21 @@
     assert comment_start > signed_off_end
     acked_by_text = ""
     acked_by_names = ""
+    gerrit_url = f"{args.url}/c/{details['project']}/+/{args.changeid}"
     for ack in details["acked_by"]:
         acked_by_text += f"Acked-by: {ack}\n"
         acked_by_names += f"{ack}\n"
     patch_text_mod = (
         patch_text[:signed_off_end]
         + signed_off_text
-        + acked_by_text
+        + acked_by_text
+	+ f"Gerrit URL: {gerrit_url}\n"
         + patch_text[signed_off_end:comment_start]
         + f"""
 This change was reviewed on Gerrit and approved by at least one
 developer. I request to merge it to {details["target"]}.
 
-Gerrit URL: {args.url}/c/{details["project"]}/+/{args.changeid}
+Gerrit URL: {gerrit_url}
 This mail reflects revision {details["revision"]} of this Change.
 {signed_off_comment}
 Acked-by according to Gerrit (reflected above):

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5
Gerrit-Change-Number: 1196
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email )

Change subject: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message
......................................................................

Patch Set 1: Code-Review-1

(3 comments)

Patchset:

PS1:
LGTM but please fix whitespace damage

File dev-tools/gerrit-send-mail.py:

http://gerrit.openvpn.net/c/openvpn/+/1196/comment/fa643897_51c57035 :
PS1, Line 109: + acked_by_text
trailing newline

http://gerrit.openvpn.net/c/openvpn/+/1196/comment/b3e07869_273491f4 :
PS1, Line 110: + f"Gerrit URL: {gerrit_url}\n"
tab vs. spaces

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5
Gerrit-Change-Number: 1196
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Wed, 17 Sep 2025 10:13:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#3 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, flichtenheld, plaisthos.

Hello flichtenheld, plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld

Change subject: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message
......................................................................

dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message

We used to reference to one of the mailing list archives as the formal reference for the patch and the review discussions. With the problematic reliability of the archives, I've started to manually add the URLs in the OpenVPN Gerrit to the commits because they give a better reference and (usually) all the feedback is there in a useful format.

So, enhance this dev-tool script to do this automatically.

Change-Id Idb137ecbade4b0584a4d74aee34978062e247bc5

---
M dev-tools/gerrit-send-mail.py

1 file changed, 3 insertions(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/96/1196/2

dev-tools/gerrit-send-mail.py +3 -1
index 0b49ae9..450e920 100755
@@ -99,6 +99,7 @@
     assert comment_start > signed_off_end
     acked_by_text = ""
     acked_by_names = ""
+    gerrit_url = f"{args.url}/c/{details['project']}/+/{args.changeid}"
     for ack in details["acked_by"]:
         acked_by_text += f"Acked-by: {ack}\n"
         acked_by_names += f"{ack}\n"
@@ -106,12 +107,13 @@
         patch_text[:signed_off_end]
         + signed_off_text
         + acked_by_text
+        + f"Gerrit URL: {gerrit_url}\n"
         + patch_text[signed_off_end:comment_start]
         + f"""
 This change was reviewed on Gerrit and approved by at least one
 developer. I request to merge it to {details["target"]}.
 
-Gerrit URL: {args.url}/c/{details["project"]}/+/{args.changeid}
+Gerrit URL: {gerrit_url}
 This mail reflects revision {details["revision"]} of this Change.
 {signed_off_comment}
 Acked-by according to Gerrit (reflected above):

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5
Gerrit-Change-Number: 1196
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset

#4 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email )

Change subject: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message
......................................................................

Patch Set 2:

(2 comments)

File dev-tools/gerrit-send-mail.py:

http://gerrit.openvpn.net/c/openvpn/+/1196/comment/f59a1bec_e4b1b87b :
PS1, Line 109: + acked_by_text

Quoted 1 line

trailing newline

Done

http://gerrit.openvpn.net/c/openvpn/+/1196/comment/87096397_9739837d :
PS1, Line 110: + f"Gerrit URL: {gerrit_url}\n"

Quoted 1 line

tab vs. […]

Done

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5
Gerrit-Change-Number: 1196
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 17 Sep 2025 10:51:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Gerrit-MessageType: comment

#5 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos.

flichtenheld has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email )

Change subject: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message
......................................................................

Patch Set 2: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5
Gerrit-Change-Number: 1196
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Wed, 17 Sep 2025 12:00:58 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#6 lore raw

PATCH v2 1/1 dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message

In reply to a message not in the archive

We used to reference to one of the mailing list archives as the formal reference for the patch and the review discussions. With the problematic reliability of the archives, I've started to manually add the URLs in the OpenVPN Gerrit to the commits because they give a better reference and (usually) all the feedback is there in a useful format.

So, enhance this dev-tool script to do this automatically.

Change-Id Idb137ecbade4b0584a4d74aee34978062e247bc5

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1196
---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1196
This mail reflects revision 2 of this Change.

Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>

dev-tools/gerrit-send-mail.py +3 -1
index 0b49ae9..450e920 100755
@@ -99,6 +99,7 @@
     assert comment_start > signed_off_end
     acked_by_text = ""
     acked_by_names = ""
+    gerrit_url = f"{args.url}/c/{details['project']}/+/{args.changeid}"
     for ack in details["acked_by"]:
         acked_by_text += f"Acked-by: {ack}\n"
         acked_by_names += f"{ack}\n"
@@ -106,12 +107,13 @@
         patch_text[:signed_off_end]
         + signed_off_text
         + acked_by_text
+        + f"Gerrit URL: {gerrit_url}\n"
         + patch_text[signed_off_end:comment_start]
         + f"""
 This change was reviewed on Gerrit and approved by at least one
 developer. I request to merge it to {details["target"]}.
 
-Gerrit URL: {args.url}/c/{details["project"]}/+/{args.changeid}
+Gerrit URL: {gerrit_url}
 This mail reflects revision {details["revision"]} of this Change.
 {signed_off_comment}
 Acked-by according to Gerrit (reflected above):
#7 lore raw

[Openvpn-devel] [PATCH applied] Re: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message

Yay, my first Python code... :-)

And tested with this very e-mail - and of course, mail-archive.org is acting up again, and not showing the "PATCH" e-mail..

Your patch has been applied to the master branch.

commit 168792766dedc2dab41347fa394fc244c73247e8

Author: Gert Doering
Date:   Wed Sep 17 14:07:15 2025 +0200
     dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message

     Signed-off-by: Gert Doering <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1196
     Message-Id: <[email protected]...>
     URL: https://sourceforge.net/p/openvpn/mailman/message/59234672/
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#8 lore raw
In reply to a message not in the archive

Hello flichtenheld, plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email

to look at the new patch set (#3).

The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld

Change subject: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message
......................................................................

dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message

We used to reference to one of the mailing list archives as the formal reference for the patch and the review discussions. With the problematic reliability of the archives, I've started to manually add the URLs in the OpenVPN Gerrit to the commits because they give a better reference and (usually) all the feedback is there in a useful format.

So, enhance this dev-tool script to do this automatically.

Change-Id Idb137ecbade4b0584a4d74aee34978062e247bc5

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1196
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59234672/

---
M dev-tools/gerrit-send-mail.py

1 file changed, 3 insertions(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/96/1196/3

dev-tools/gerrit-send-mail.py +3 -1
index 0b49ae9..450e920 100755
@@ -99,6 +99,7 @@
     assert comment_start > signed_off_end
     acked_by_text = ""
     acked_by_names = ""
+    gerrit_url = f"{args.url}/c/{details['project']}/+/{args.changeid}"
     for ack in details["acked_by"]:
         acked_by_text += f"Acked-by: {ack}\n"
         acked_by_names += f"{ack}\n"
@@ -106,12 +107,13 @@
         patch_text[:signed_off_end]
         + signed_off_text
         + acked_by_text
+        + f"Gerrit URL: {gerrit_url}\n"
         + patch_text[signed_off_end:comment_start]
         + f"""
 This change was reviewed on Gerrit and approved by at least one
 developer. I request to merge it to {details["target"]}.
 
-Gerrit URL: {args.url}/c/{details["project"]}/+/{args.changeid}
+Gerrit URL: {gerrit_url}
 This mail reflects revision {details["revision"]} of this Change.
 {signed_off_comment}
 Acked-by according to Gerrit (reflected above):

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5
Gerrit-Change-Number: 1196
Gerrit-PatchSet: 3
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#9 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email )

Change subject: dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message
......................................................................

dev-tools/gerrit-send-mail.py: include Gerrit URL into the commit message

We used to reference to one of the mailing list archives as the formal reference for the patch and the review discussions. With the problematic reliability of the archives, I've started to manually add the URLs in the OpenVPN Gerrit to the commits because they give a better reference and (usually) all the feedback is there in a useful format.

So, enhance this dev-tool script to do this automatically.

Change-Id Idb137ecbade4b0584a4d74aee34978062e247bc5

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1196
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59234672/

---
M dev-tools/gerrit-send-mail.py

1 file changed, 3 insertions(+), 1 deletion(-)
dev-tools/gerrit-send-mail.py +3 -1
index 0b49ae9..450e920 100755
@@ -99,6 +99,7 @@
     assert comment_start > signed_off_end
     acked_by_text = ""
     acked_by_names = ""
+    gerrit_url = f"{args.url}/c/{details['project']}/+/{args.changeid}"
     for ack in details["acked_by"]:
         acked_by_text += f"Acked-by: {ack}\n"
         acked_by_names += f"{ack}\n"
@@ -106,12 +107,13 @@
         patch_text[:signed_off_end]
         + signed_off_text
         + acked_by_text
+        + f"Gerrit URL: {gerrit_url}\n"
         + patch_text[signed_off_end:comment_start]
         + f"""
 This change was reviewed on Gerrit and approved by at least one
 developer. I request to merge it to {details["target"]}.
 
-Gerrit URL: {args.url}/c/{details["project"]}/+/{args.changeid}
+Gerrit URL: {gerrit_url}
 This mail reflects revision {details["revision"]} of this Change.
 {signed_off_comment}
 Acked-by according to Gerrit (reflected above):

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1196?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb137ecbade4b0584a4d74aee34978062e247bc5
Gerrit-Change-Number: 1196
Gerrit-PatchSet: 3
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged